import request from '@/utils/http';

/** 列表-报告查询 */
export const getPageRequest = (data: object) => {
  return request.post('/userReport/page', data);
};

/** 项目详情 */
export const getProjectRequest = (data: object) => {
  return request.post('/userReport/project', data);
};

/** 报告详情 */
export const getInfoRequest = (data: object) => {
  return request.post('/userReport/info', data);
};

/** export */
export const getExportRequest = (data: object) => {
  return request.post('/userReport/export', data);
};

/** 报告分类 */
export const getCategoryRequest = (data: object) => {
  return request.post('/userReport/category', data);
};

/** 健康报告导航 */
export const getBannerRequest = (data: object) => {
  return request.post('/userReport/banner', data);
};

/** 报告 */
export const exportRequest = (data: object) => {
  return request.post('/userReport/export', data, { responseType: 'blob' });
};

/** 弹出框回显数据 */
export const getCheckPointsDetailRequest = (data: object) => {
  return request.post('/checkPoints/getCheckPointsDetail', data);
};
/** 列表导出 */
export const userReportExportListRequest = (data: object) => {
  return request.post('/userReport/exportList', data);
};
/** 项目详情 */
export const projectRequest = (data: object) => {
  return request.post('/userReport/project', data);
};

